package com.demo.account;

import com.demo.utils.LogUtil;

public class AccountThread extends Thread {
    private Account account;

    public AccountThread(Account account) {
        this.account = account;
    }

    @Override
    public void run() {
        double money = 5000;
        double balance = account.withDraw(money);//取款
        LogUtil.info("对{}取款{}成功，账户余额：{}", account.getActName(), money, balance);
    }
}
